<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$school['title']}</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 user-scalable=yes" />
<link type="text/css" rel="stylesheet" href="{OSSURL}public/mobile/css/bindingFormFor.css" />
<link type="text/css" rel="stylesheet" href="{OSSURL}public/mobile/css/greenStyle.css?v=4.60120" />
<script type="text/javascript" src="{OSSURL}public/mobile/js/jquery-1.11.3.min.js?v=4.6"></script>
<script src="{OSSURL}public/mobile/js/jquery.js"></script>
<script src="{OSSURL}public/mobile/js/PromptBoxUtil.js"></script>
</head>
	<body>
		<div class="all">
			<div class="header mainColor">
				<div class="l">
					<a class="backOff" style="background:url({OSSURL}public/mobile/img/ic_arrow_left_48px_white.svg) no-repeat;background-size: 55% 55%;background-position: 50%;" href="javascript:history.go(-1);"></a>
				</div>
				<div class="m">
					<span>报名进度</span>
				</div>
			</div>
			<div class="_header"></div>
			<div class="bangdingForm">
				<div class="bangdingBox">
					<div class="headerBox1">
						<div class="headerinfo">
							{if $item['status'] ==1}
							<span class="l">资料已提交</span>
							<span class="r">老师正在审核您提交的资料,请耐心等待</span>
							{else if $item['status'] ==2}
							<span class="l">审核通过</span>
							<span class="r">您提交的报名资料审核通过,您可以通过以下信息绑定学生</span>							
							{else if $item['status'] ==3}
							<span class="l">审核不通过</span>
							<span class="r">抱歉！您的资料没有审核通过,请联系学校哦！</span>							
							{/if}
						</div>
					</div>
					<div class="infoBox">
						<ul>
							<li>
								<span class="f">已提交</span>
							</li>
							{if !empty($class['cost'])}
							<li>
								<span class="r">待支付</span>
							</li>
							<li>
								{if $order['status'] == 2}<span class="r">已支付</span>{else}<span class="n">未支付</span>{/if}
							</li>
							{/if}
							<li>
								<span {if $item['status'] == 1}class="n"{else}class="r"{/if}>{if $item['status'] == 1}待审核{else if $item['status'] == 2}已通过{else if $item['status'] == 3}未通过{/if}</span>
							</li>							
						</ul>	
					</div>				
				</div>
			</div>
			<div class="bangdingForm">
				<div class="bangdingBox">
					<div class="headerBox2">
						<div class="headerinfo1">
							<span class="h"><img src="{php echo tomedia($school['logo']);}"></img></span>
							<span class="t">{$school['title']}</span>
						</div>
					</div>
					{if !empty($class['cost'])}
					<div class="headerBox2">
						<div class="headerinfo2">
							<span class="s">报名费</span>
							<span class="a">￥{$class['cost']}</span>
						</div>
					</div>
					{/if}					
					<div class="infoBox1">
						<ul>
							<li>
								<span class="l"><img src="{OSSURL}public/mobile/img/phone.png"></img><a style="color:#333;font-size:15px;" href="tel:{$school['tel']}">&nbsp;&nbsp;联系学校</a></span>
							</li>
							<li>
								<span class="r"><img src="{OSSURL}public/mobile/img/address.png"></img><a style="color:#333;font-size:15px;" onclick="tixing({$item['id']});">&nbsp;&nbsp;提醒审核</a></span>
							</li>							
						</ul>					
					</div>					
				</div>
			</div>
			{if $order['status'] == 1}
				<div class="submitBtn mainColor" onclick="gopay({$item['orderid']},'{$item['name']}');">前往支付</div>
			{/if}			
			<div class="bangdingForm">
				<div class="bangdingBox">
					<div class="headerBox3">
						<div class="headerinfo3">
							<span class="t">报名信息</span>
						</div>
					</div>					
					<div class="infoBox2">
						<ul>
								<li>
									<span class="l">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
									<span class="r">{if $item['status'] == 1}审核中{else if $item['status'] == 2}已通过{else if $item['status'] == 3}未通过{/if}</span>
								</li>
								{if !empty($class['cost'])}
								<li>
									<span class="l">报名费用：</span>
									<span class="r">￥{$class['cost']}</span>
								</li>
								{if !empty($order['status'])}
								<li>
									<span class="l">付费状态：</span>
									<span class="r">{if $order['status'] == 1}未付费{else if $order['status'] == 2}已付费{else if $order['status'] == 3}有退费{/if}</span>
								</li>								
								{/if}
								{/if}
								<li>
									<span class="l">学生姓名：</span>
									<span class="r">{$item['name']}</span>
								</li>
								<li>
									<span class="l">预留手机：</span>
									<span class="r">{$item['mobile']}</span>
								</li>
								<li>
									<span class="l">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</span>
									<span class="r">{if $item['sex'] ==1}男{else}女{/if}</span>
								</li>
								<li>
									<span class="l">年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级：</span>
									<span class="r">{$xueqi['sname']}</span>
								</li>
								{if !empty($item['bj_id'])}
								<li>
									<span class="l">班&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级：</span>
									<span class="r">{$class['sname']}</span>
								</li>
								{/if}
								{if !empty($item['birthday'])}
								<li>
									<span class="l">生&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日：</span>
									<span class="r">{php echo date('Y-m-d', $item['birthday'])}</span>
								</li>
								{/if}								
								{if !empty($item['idcard'])}
								<li>
									<span class="l">身份证号：</span>
									<span class="r">{$item['idcard']}</span>
								</li>
								{/if}
								{if !empty($item['numberid'])}
								<li>
									<span class="l">学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
									<span class="r">{$item['numberid']}</span>
								</li>
								{/if}								
								{if !empty($item['passtime'])}
								<li>
									<span class="l">审核时间：</span>
									<span class="r">{php echo date('Y-m-d H:m', $item['passtime'])}</span>
								</li>
								{/if}							
						</ul>					
					</div>					
				</div>
			</div>			
		</div>
	</body>
<script type="text/javascript">
var PB = new PromptBox();

function tixing(id){
	if(confirm("确认发送提醒信息给老师？")){
		var submitData = {
			id : id,
			schoolid :"{$schoolid}",
			openid :"{$openid}",
			weid :"{$weid}",
			uid :"{$fan['uid']}",
			s_name : "{$item['name']}",
			njid : "{$item['nj_id']}",
			bjid : "{$item['bj_id']}",
			mobile : "{$item['mobile']}",
		};
	        $.post("{php echo $this->createMobileUrl('indexajax',array('op'=>'txshbm'))}",submitData,function(data){
            if(data.result){
                PB.prompt(data.msg);
            }else{
                PB.prompt(data.msg);
            }
        },'json'); 
    }
}
function gopay(id,s_name){
var s_name = s_name;
window.location.href = "{php echo $this->createMobileUrl('gopay', array('schoolid' => $schoolid),true)}" + "&orderid=" + id + "&s_name=" + s_name;
}
</script>
</html>